﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using SH.Customer.Application.IApplication;

namespace SH.Customer.Read.API.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class DicController : ControllerBase
    {
        private readonly IDicApplication _dicService;

        public DicController(IDicApplication dicService)
        {
            _dicService = dicService;
        }

        /// <summary>
        /// 获取字典数据
        /// </summary>
        /// <param name="Identification"></param>
        /// <returns></returns>
        [HttpGet]
        public IActionResult DicShow(string Identification)
        {
            var result = _dicService.DicShow(Identification);
            return Ok(result);
        }
    }
}
